package com.engineering.elink.dao.file;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.engineering.elink.common.util.BaseCo;
import com.engineering.elink.entity.file.File;

public interface FileMapper {
	int deleteByPrimaryKey(String fileId);
	int insert(File record);

	int insertSelective(File record);

	File selectByPrimaryKey(String fileId);
	
	int updateByPrimaryKeySelective(File record);

	int updateByPrimaryKey(File record);

	@Delete("delete  from file where find_in_set(file_id,#{ids})")
	void del(@Param("ids") String ids);
	
	File selectInfo(String fileId);
	
	List<File> selectList(@Param("offset") int offset,@Param("limit") int limit);
	
	int selectCount();
	
	List<File> selectList(@Param("co")BaseCo co);

	int selectCount(@Param("co")BaseCo co);
}